package com.lch.designpattern.singleton.seriable;

import java.io.Serializable;

/**
 * @author: liuchenhui
 * @create: 2019-04-16 23:53
 **/
public class SeriableSingleton implements Serializable {

    public final static SeriableSingleton INSTANCE = new SeriableSingleton();

    private SeriableSingleton() {

    }

    public static SeriableSingleton getInstance() {
        return INSTANCE;
    }

    private Object readResolve() {
        return INSTANCE;
    }
}
